//
//  PostClass.h
//  Mecca
//
//  Created by Ryan Enguero on 5/20/14.
//  Copyright (c) 2014 TapDash Heuristics. All rights reserved.
//

#import <Foundation/Foundation.h>

@interface PostClass : NSObject

@property (strong, nonatomic) NSMutableData *receivedData;

@property (nonatomic,strong) NSFileHandle *handle;

@property (strong, nonatomic) NSURLConnection *theConnection;

- (NSMutableURLRequest*)registerMethodWithEmail:(NSString*)email andContactNumber:(NSString*)cNum andDisplayName:(NSString*)dName andCountry:(NSString*)country andPassword:(NSString*)password;

- (NSMutableURLRequest*)loginWithUsername:(NSString*)username andPassword:(NSString*)password andDeviceID:(NSString*)deviceID;

- (NSDictionary*)getSong:(NSString*)albumID andUserID:(NSString*)userID;

- (NSMutableURLRequest*)getNewsfeed:(NSString*)deviceID;

- (NSDictionary*)downloadCount:(NSString*)songID andUserID:(NSString*)userID andPrice:(NSString*)price andUserCredits:(NSString*)userCredits andAlbumID:(NSString*)albumId;

- (NSMutableURLRequest*)getTops:(NSString*)deviceID andUserID:(NSString*)userID;

- (NSData*)rateSongs:(NSMutableDictionary*)details;

- (NSData*)likeSongs:(NSMutableDictionary*)details;

- (NSData*)commentsPost:(NSMutableDictionary*)details;

- (NSMutableURLRequest*)getFavorites:(NSString*)details andUserID:(NSString*)userID;

- (NSMutableURLRequest*)getEvents:(NSString*)details;

- (NSMutableURLRequest*)logOutWithSessionID:(NSString*)sessionID;

- (NSData*)songViewComment:(NSString*)songID;

- (NSString*)updateProfile:(NSDictionary*)details;

- (NSDictionary*)postLoginType:(NSString*)loginType andFbID:(NSString*)fbID andUserDname:(NSString*)userdname andUserEmail:(NSString*)userEmail;

- (NSMutableURLRequest*)getNewArtist:(NSString*)deviceID;

- (NSMutableURLRequest*)getNewSong:(NSString*)deviceID andUserID:(NSString*)userID;

- (NSMutableURLRequest*)getFeaturedSong:(NSString*)deviceID andUserID:(NSString*)userID;

- (NSMutableURLRequest*)getFeaturedArtist:(NSString*)deviceID;

- (NSMutableURLRequest*)getHomeData:(NSString*)deviceID;

- (NSMutableURLRequest*)getAlbumsSchedsPhotos:(NSString*)artistID;

- (NSData*)dataHome;

- (NSMutableURLRequest*)getPlaylist:(NSString*)userID;

- (NSMutableURLRequest*)getQRCodeLoad:(NSString*)qrCode andUserID:(NSString*)userID;

+ (PostClass *) sharedItems;

@end
